import service from '@/utils/request'
// @Tags InvoiceItems
// @Summary 创建invoiceItems表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.InvoiceItems true "创建invoiceItems表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /invoiceItems/createInvoiceItems [post]
export const createInvoiceItems = (data) => {
  return service({
    url: '/invoiceItems/createInvoiceItems',
    method: 'post',
    data
  })
}

// @Tags InvoiceItems
// @Summary 删除invoiceItems表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.InvoiceItems true "删除invoiceItems表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /invoiceItems/deleteInvoiceItems [delete]
export const deleteInvoiceItems = (params) => {
  return service({
    url: '/invoiceItems/deleteInvoiceItems',
    method: 'delete',
    params
  })
}

// @Tags InvoiceItems
// @Summary 批量删除invoiceItems表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除invoiceItems表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /invoiceItems/deleteInvoiceItems [delete]
export const deleteInvoiceItemsByIds = (params) => {
  return service({
    url: '/invoiceItems/deleteInvoiceItemsByIds',
    method: 'delete',
    params
  })
}

// @Tags InvoiceItems
// @Summary 更新invoiceItems表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.InvoiceItems true "更新invoiceItems表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /invoiceItems/updateInvoiceItems [put]
export const updateInvoiceItems = (data) => {
  return service({
    url: '/invoiceItems/updateInvoiceItems',
    method: 'put',
    data
  })
}

// @Tags InvoiceItems
// @Summary 用id查询invoiceItems表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.InvoiceItems true "用id查询invoiceItems表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /invoiceItems/findInvoiceItems [get]
export const findInvoiceItems = (params) => {
  return service({
    url: '/invoiceItems/findInvoiceItems',
    method: 'get',
    params
  })
}

// @Tags InvoiceItems
// @Summary 分页获取invoiceItems表列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取invoiceItems表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /invoiceItems/getInvoiceItemsList [get]
export const getInvoiceItemsList = (params) => {
  return service({
    url: '/invoiceItems/getInvoiceItemsList',
    method: 'get',
    params
  })
}

// @Tags InvoiceItems
// @Summary 不需要鉴权的invoiceItems表接口
// @Accept application/json
// @Produce application/json
// @Param data query fapiaoReq.InvoiceItemsSearch true "分页获取invoiceItems表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /invoiceItems/getInvoiceItemsPublic [get]
export const getInvoiceItemsPublic = () => {
  return service({
    url: '/invoiceItems/getInvoiceItemsPublic',
    method: 'get',
  })
}
